package cn.niit.letuseatdemo.service.impl;

import cn.niit.letuseatdemo.entity.domain.UserOrderDetail;
import cn.niit.letuseatdemo.mapper.UserOrderDetailMapper;
import cn.niit.letuseatdemo.service.UserOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: JinNa ToDo
 * @Date: 2022/11/10/15:05
 * @Description:
 */
@Service
public class UserOrderDetailServiceImpl implements UserOrderDetailService {
    @Autowired
    private UserOrderDetailMapper userOrderDetailMapper;

    /*
     * @Description: 查询订单详情列表${TODO}
     * @Author: Jin_Na
     * @CreateTime: 2022/11/10 17:23
     * @param: orderId
     * @return: cn.niit.letuseatdemo.entity.domain.UserOrderDetail
    **/
    @Override
    public UserOrderDetail selectUserOrderDetailByOrderId(Integer orderId) {
        return userOrderDetailMapper.selectUserOrderDetailByOrderId(orderId);
    }

//    @Override
//    public List<UserOrderDetail> selectUserOrderDetailListByOrderId(Integer orderId) {
//        return userOrderDetailMapper.selectUserOrderDetailByOrderId;
//    }


//    @Override
//    public List<UserOrderDetail> selectUserOrderDetailList(UserOrderDetail userOrderDetail){//select改为get
//        return userOrderDetailMapper.selectUserOrderDetailList(userOrderDetail);
//    }
}
